home *** CD-ROM | disk | FTP | other *** search
/ Amiga Developer CD 2.1 / Amiga Developer CD v2.1.iso / NDK / NDK_3.5 / Documentation / Autodocs / amigaguide_dtc.doc < prev    next >
Encoding:
Text File  |  1999-04-13  |  14.1 KB  |  450 lines

  1. TABLE OF CONTENTS
  2.  
  3. amigaguide.class/GetAGString
  4. amigaguide/amigaguide.datatype
  5. amigaguide.class/GetAGString                     amigaguide.class/GetAGString
  6.  
  7.     NAME
  8.         GetAGString - Obtain localized AmigaGuide text  (V34)
  9.  
  10.     SYNOPSIS
  11.         string = GetAGString (id);
  12.         d0                      d0
  13.  
  14.         STRPTR GetAGString (LONG);
  15.  
  16.     FUNCTION
  17.         This function is used to obtain a pointer to the string
  18.         associated with the given ID.
  19.  
  20.     INPUTS
  21.         id        - Catalog entry to obtain.
  22.  
  23.     RETURNS
  24.         Returns a pointer to the NULL terminated string. NULL on
  25.         failure.
  26.  
  27.     SEE ALSO
  28.  
  29. amigaguide/amigaguide.datatype                 amigaguide/amigaguide.datatype
  30.  
  31.     NAME
  32.         amigaguide.datatype -- data type for AmigaGuide databases.
  33.  
  34.     FUNCTION
  35.         The amigaguide.datatype is the DataTypes class for AmigaGuide
  36.         databases.
  37.  
  38.     METHODS
  39.         OM_NEW -- Create a new AmigaGuide object.
  40.  
  41.         OM_GET -- Obtain the value of an attribute.
  42.  
  43.         OM_SET -- Set the values of multiple attributes.
  44.  
  45.         OM_UPDATE -- Update the values of multiple attributes.
  46.  
  47.         OM_DISPOSE -- Dispose of an AmigaGuide object.
  48.  
  49.         GM_LAYOUT -- Layout the object and notify the application of the
  50.             title and size.
  51.  
  52.         GM_HITTEST -- Determine if the object has been hit with the
  53.             mouse.
  54.  
  55.         GM_GOACTIVE -- Tell the object to go active.
  56.  
  57.         GM_HANDLEINPUT -- Handle input.
  58.  
  59.         GM_RENDER -- Cause the AmigaGuide database to render.
  60.  
  61.         DTM_GOTO -- Cause the AmigaGuide database to load and display
  62.             document.
  63.  
  64.         DTM_TRIGGER -- Trigger an event.
  65.  
  66.             STM_COMMAND - Invoke an AmigaGuide command.
  67.  
  68.             STM_CONTENTS - Display the table of contents.
  69.  
  70.             STM_INDEX - Display the index.
  71.  
  72.             STM_HELP - Display the help file.
  73.  
  74.             STM_RETRACE - Retrace.
  75.  
  76.             STM_BROWSE_PREV - Go to the previous sequential document.
  77.  
  78.             STM_BROWSE_NEXT - Go to the next sequential document.
  79.  
  80.         DTM_PROCLAYOUT -- Layout (remap) the AmigaGuide database on the
  81.             application's process.
  82.  
  83.         DTM_FRAMEBOX -- Obtain the display environment that the
  84.             AmigaGuide database requires.
  85.  
  86.         DTM_SELECT -- Select an area in the AmigaGuide database.
  87.  
  88.         DTM_CLEARSELECTED -- Deselect the selected area of the
  89.             AmigaGuide database.
  90.  
  91.         DTM_COPY -- Copy the selected area of the text to the clipboard
  92.             as FTXT.  If no area is selected, then the entire text
  93.             is copied.
  94.  
  95.         DTM_PRINT -- Print the selected area of the text.  If no area
  96.             is selected, then the entire text is printed.
  97.  
  98.         DTM_WRITE -- Write the selected area of the text to a file.
  99.             If no area is selected, then the entire text is saved.
  100.  
  101.     TAGS
  102.         DTA_TriggerMethods -- List of the trigger methods supported.
  103.  
  104.             Applicability is (G).
  105.  
  106.         DTA_Methods -- List of the methods supported.
  107.  
  108.             Applicability is (G).
  109.  
  110.         DTA_TextAttr (struct TextAttr *) -- Text attribute to use for
  111.             the AmigaGuide database.
  112.  
  113.             Applicability is (ISG).
  114.  
  115.         DTA_Name (STRPTR) -- Name of the AmigaGuide database.
  116.  
  117.             Applicability is (I).
  118.  
  119.         DTA_Handle (BPTR) -- File handle for the AmigaGuide database.
  120.  
  121.             Applicability is (I).
  122.  
  123.         DTA_NodeName (STRPTR) -- Document to display.
  124.  
  125.             Applicability is (I).
  126.  
  127.         TDTA_WordDelim (STRPTR) -- Characters used to deliminate words.
  128.  
  129.             Applicability is (IS). Defaults to "\t *-,<>()[];\"".
  130.  
  131.         AGA_HelpGroup (ULONG) -- Help group that the AmigaGuide object
  132.             belongs in.
  133.  
  134.             Applicability is (I).
  135.  
  136.         AGA_Secure (BOOL) -- This tag allows you control whether
  137.             AmigaGuide will execute the commands "ONOPEN", "ONCLOSE",
  138.             "LINK RX", "LINK RXS" and "LINK SYSTEM". These commands
  139.             present a potential security hole if, for example,
  140.             AmigaGuide documents are displayed in an e-mail reader
  141.             program. To disabled them, set the AGA_Secure tag to
  142.             TRUE; in this case AmigaGuide will still recognize the
  143.             commands but will not execute them.
  144.  
  145.             Applicability is (ISG). Defaults to FALSE. (V41)
  146.  
  147.     COMMANDS
  148.         Commands must start in the very first column of a line, and
  149.         can be the only thing on the line.  If a line begins with an
  150.         @ sign, then it is interpreted as a command.
  151.  
  152.         The following commands can be used in the global section
  153.         of a database.
  154.  
  155.           @$VER: <AmigaDOS version string>
  156.           Specify the version of the database.  This command
  157.           must always be in upper-case.
  158.  
  159.           @(C) <copyright>
  160.           Specify the copyright notice for the database.
  161.  
  162.           @AUTHOR <name>
  163.           Specify the author of the database.
  164.  
  165.           @DATABASE <name>
  166.           Must be the very first line of an AmigaGuide document.
  167.  
  168.           @DNODE <name>
  169.           Indicates the start of a dynamic node.  The AmigaGuide system
  170.           uses the callback hooks to obtain the document from a document
  171.           provider.  This is obsolete, do not use.
  172.  
  173.           @FONT <name> <size>
  174.           Specify the font to use for the database.
  175.  
  176.           @HEIGHT <chars>
  177.           How high, in characters, the largest document is.
  178.  
  179.           @HELP <name/node>
  180.           Specify the name of the help node, which will be accessed
  181.           by the Help button.  Can be a node in an external database.
  182.  
  183.           @INDEX <name/node>
  184.           Specify the name of the index node, which will be accessed
  185.           by the Index button.  Can be a node in an external database.
  186.  
  187.           @MACRO <name> <commands>
  188.           This is used to construct a macro.  A macro can be used the
  189.           same way as an attribute command, and can only consist of
  190.           other attribute commands or macros.  The macro list is
  191.           searched before the attribute command list is searched.  This
  192.           is new for V40.
  193.  
  194.               @macro icom "@{i}$1 @{ui}"
  195.  
  196.               ...
  197.  
  198.               This is an @{icom "example"} of macro.
  199.  
  200.           @MASTER <path>
  201.           Complete path of the source document used to define this
  202.           AmigaGuide database.
  203.  
  204.           @NODE <name> <title>
  205.           Indicate the start of a node (page/article/section). The first
  206.           node, or main node, must be named MAIN.  MAIN must be the master
  207.           table of contents for the database.
  208.  
  209.           @ONCLOSE <rxcommand>
  210.           This is used to specify an ARexx macro file to execute when
  211.           the database is closed.  The return value of the script has no
  212.           effect on the database.  New for V40.
  213.  
  214.           @ONOPEN <rxcommand>
  215.           This is used to specify an ARexx macro file to execute when
  216.           the database is opened.  If the script returns an error, then
  217.           the database will not be opened.  New for V40.
  218.  
  219.           @REM <remark>
  220.           @REMARK <remark>
  221.           This is used to place remarks in the database.  These remarks
  222.           are not displayed to the user.
  223.  
  224.           @SMARTWRAP
  225.           This is used to indicate that the text of the database is to
  226.           wordwrapped using a more intelligent algorithm than @wordwrap.
  227.           A paragraph doesn't need to be restricted to one physical
  228.           line, but paragraphs must be separated by two line feeds.
  229.           New for V40.
  230.  
  231.           @TAB <num>
  232.           Number of spaces in a tab.  Defaults to 8.  New for V40.
  233.  
  234.           @WIDTH <chars>
  235.           How wide, in characters, the largest document is.
  236.  
  237.           @WORDWRAP
  238.           Turn on wordwrapping for the whole database.  A paragraph must
  239.           be restrained to one physical line.
  240.  
  241.         The following commands can be used within nodes of a database.
  242.  
  243.           \
  244.           A backslash is the escape character.  A backslash in front of
  245.           the @ sign is used to escape it. The backslash has no effect
  246.           as an escape character inside commands such as @ONOPEN or
  247.           @{".." LINK ..}; in cases like these it is treated as a
  248.           regular character.
  249.           Please note that AmigaGuide V35 does not treat the backslash
  250.           character as an escape character.
  251.  
  252.           @ENDNODE <name>
  253.           Indicate the end of a node.  Must start at the beginning of a
  254.           line.
  255.  
  256.           @FONT <name> <size>
  257.           Specify the font to use for the node.
  258.  
  259.           @HELP <name/node>
  260.           Specify the name of the help node, which will be accessed
  261.           by the Help button.  Can be a node in an external database.
  262.  
  263.           @INDEX <name/node>
  264.           Specify the name of the index node, which will be accessed
  265.           by the Index button.  Can be a node in an external database.
  266.  
  267.           @KEYWORDS <keywords>
  268.           Keywords of the node.  Someday when searching is
  269.           reimplemented, there will be a keyword search.
  270.  
  271.           @NEXT <node name>
  272.           Node to display when the user selects "Browse >"
  273.  
  274.           @ONCLOSE <rxcommand>
  275.           This is used to specify an ARexx macro file to execute when
  276.           the node is closed.  The return value of the script has no
  277.           effect on the node.  New for V40.
  278.  
  279.           @ONOPEN <rxcommand>
  280.           This is used to specify an ARexx macro file to execute when
  281.           the node is opened.  If the script returns an error, then
  282.           the node will not be opened.  New for V40.
  283.  
  284.           @PREV <node name>
  285.           Node to display when the user selects "< Browse"
  286.  
  287.           @SMARTWRAP
  288.           This is used to indicate that the text of the node is to
  289.           wordwrapped using a more intelligent algorithm than @wordwrap.
  290.           A paragraph doesn't need to be restricted to one physical
  291.           line, but paragraphs must be separated by two line feeds.
  292.           New for V40.
  293.  
  294.           @TAB <num>
  295.           Number of spaces in a tab.  Defaults to 8.  New for V40.
  296.  
  297.           @TITLE <title>
  298.           Title to display in the title bar of the window during the
  299.           display of this node.  Must start at the beginning of a line.
  300.  
  301.           @TOC <node name>
  302.           Name of the node that contains the table of contents for this
  303.           node.  Defaults to MAIN.  This is the node that is displayed
  304.           when the user presses the "Contents" button.
  305.  
  306.           @WORDWRAP
  307.           Turn on wordwrapping for the node.  A paragraph must
  308.           be restrained to one physical line.
  309.  
  310.           @{<label> <command>}
  311.           Indicate a textual link point.  Can be anywhere in a line.
  312.           Starting with 3.0, AmigaGuide can can link to graphics,
  313.           sounds, animations and other DataTypes.
  314.  
  315.     ATTRIBUTES
  316.         Following is a list of attributes that can be applied to the
  317.         text of a node.
  318.  
  319.           @{AMIGAGUIDE}
  320.           Displays the word AmigaGuide in bold followed by the ® symbol.
  321.           New for V40.
  322.  
  323.           @{APEN}
  324.           Use to change the foreground color to a specific pen number.
  325.           New for V40.
  326.  
  327.           @{B}
  328.           Turn bold on.
  329.  
  330.           @{BG <color>}
  331.           Used to change the background text color.  Color can be:
  332.  
  333.             Text
  334.             Shine
  335.             Shadow
  336.             Fill
  337.             FillText
  338.             Background
  339.             Highlight
  340.  
  341.           @{BODY}
  342.           Indicate that the following text is the body of the document.
  343.           Word wrap will be turned back on if it is the default.  New
  344.           for V40.
  345.  
  346.           @{BPEN}
  347.           Use to change the background color to a specific pen number.
  348.           New for V40.
  349.  
  350.           @{CLEARTABS}
  351.           Restore the default tab stops.  New for V40.
  352.  
  353.           @{CODE}
  354.           Indicate that the following text is not to be word-wrapped.
  355.           New for V40.
  356.  
  357.           @{FG <color>}
  358.           Used to change the foreground color.  The same colors can be
  359.           used as in the FG command.
  360.  
  361.           @{I}
  362.           Turn italic on.
  363.  
  364.           @{JCENTER}
  365.           Turn on centering.  New for V40.
  366.  
  367.           @{JLEFT}
  368.           Turn on left justification.  New for V40.
  369.  
  370.           @{JRIGHT}
  371.           Turn on right justification.  New for V40.
  372.  
  373.           @{LINDENT}
  374.           Set the number of spaces to indent the body of a paragraph.
  375.           New for V40.
  376.  
  377.           @{LINE}
  378.           Force a line feed without starting a new paragraph.  New for V40.
  379.  
  380.           @{PAR}
  381.           Used to indicate the end of a paragraph.  This is the same as
  382.           two sequential LF's in the source file.  New for V40.
  383.  
  384.           @{PARD}
  385.           Restore the default settings for a paragraph.  Text pen to 1,
  386.           background to 0, normal font, and no indentation.  New for V40.
  387.  
  388.           @{PARI}
  389.           Set the number of spaces to indent the first line of a
  390.           paragraph relative to the normal paragraph indentation.  The
  391.           value may be a negative number.  New for V40.
  392.  
  393.           @{PLAIN}
  394.           Used to turn off all @{B}, @{I}, and @{U} commands.  New for
  395.           V40.
  396.  
  397.           @{SETTABS <n> ... <n>}
  398.           This is used to establish tab stops.  New for V40.
  399.  
  400.           @{TAB}
  401.           The same as character 9 in the source file.  New for V40.
  402.  
  403.           @{U}
  404.           Turn underline on.
  405.  
  406.           @{UB}
  407.           Turn bold off.
  408.  
  409.           @{UI}
  410.           Turn italic off.
  411.  
  412.           @{UU}
  413.           Turn underline off.
  414.  
  415.     AREXX COMMANDS
  416.         AmigaGuide supports the following ARexx commands.
  417.  
  418.           BEEP
  419.           DisplayBeep().
  420.  
  421.           CLOSE
  422.           Close the current database.
  423.  
  424.           GETNODECOUNT
  425.           Returns the number of nodes in the database using the RESULT
  426.           variable.  New for V40.
  427.  
  428.           LINK
  429.           Go to the named node.
  430.  
  431.           NEXT
  432.           Go to the next physical node in the database.  Same as
  433.           pressing the "Browse >" button.  New for V40.
  434.  
  435.           PREVIOUS
  436.           Go to the previous physical node in the database.  Same as
  437.           pressing the "Browse <" button.  New for V40.
  438.  
  439.           PRINT
  440.           Print the current node.  Doesn't return until complete.  New for
  441.           V40.
  442.  
  443.           QUIT
  444.           Close the current database.
  445.  
  446.           RETRACE
  447.           Go to the previous node in the database.  Same as pressing the
  448.           "Retrace" button.  New for V40.
  449.  
  450.